<?php
/**
 * @author: xaboy<365615158@qq.com>
 * @day: 2017/11/11
 */

namespace app\merchant\model\proxy;

use crmeb\basic\BaseModel;
use app\models\store\StoreCart;
use crmeb\services\PHPExcelService;
use crmeb\traits\ModelTrait;


/**
 * 产品管理 model
 * Class StoreProduct
 * @package app\admin\model\store
 */
class Proxy extends BaseModel
{

    /**
     * 数据表主键
     * @var string
     */
    protected $pk = 'id';

    /**
     * 模型名称
     * @var string
     */
    protected $name = 'proxy_config';

    use ModelTrait;

    public static function go_init($mer_id){
        $is_be = self::be(['mer_id'=>$mer_id]);
        if(!$is_be){
            $insert['mer_id']   = $mer_id;
            $insert['create_at'] = time();
            self::create($insert);
        }

    }


}